<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class FirmComment extends Model
{
    use HasDateTimeFormatter;

    protected $fillable = [
        'firm_id',
        'user_id',
        'content',
    ];

    protected $attributes = [
        'audit_status' => 2
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }

    public function firm()
    {
        return $this->belongsTo(Firm::class,'firm_id');
    }
}
